import request from '@/utils/request'

// 查询项目展示库列表
export function listProjectShow(query) {
  return request({
    url: '/projectShowLibrary/list',
    method: 'get',
    params: query
  })
}

// 查询未展示项目列表
export function noShowList(query) {
  return request({
    url: '/projectShowLibrary/noShowList',
    method: 'get',
    params: query
  })
}

//项目展示库-锁定/解锁
export function lockOrUnlock(data) {
  return request({
      url: '/projectShowLibrary/lockOrUnlock',
      method: 'put',
      data: data
  })
}

// 项目展示库-导出
export function exportProjectShow(query) {
  return request({
    url: '/projectShowLibrary/export',
    method: 'get',
    params: query
  })
}

// 项目展示库-获取详情
export function getProjectShowDetail(guid) {
  return request({
    url: '/projectShowLibrary/getProjectShowDetail/'+guid,
    method: 'get'
  })
}

//批量修改是否展示项目
export function updateProject(guids) {
  return request({
      url: '/projectShowLibrary/' + guids,
      method: 'put'
  })
}